package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.Permission;
import org.example.domain.UserDto;

import java.util.List;

public interface LoginMapper {
    UserDto selectUserByName(@Param("username") String username);

    List<Permission> selectPermissionsByUserId(@Param("id") Long id);
}
